<?php

/**
 *
 * @author     村长+ <178277164@qq.com>
 */

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        if (!Schema::hasTable('pay_product_name')) {
            Schema::create('pay_product_name', function (Blueprint $table) {
                $table->comment('商品支付时传的商品名字');
                $table->id()->comment('ID');
                $table->integer('product_id')->comment('商品id');
                $table->string('product_name')->comment('商品名');
                $table->timestamps();
            });
        }
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {

    }
};
